﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using Colorful.Furniture.Enum;
using Colorful.Furniture.IEntity;
using FreeSql.DataAnnotations;

namespace Colorful.Furniture.PaymentManagement;

/// <summary>
/// 站点相关支付信息
/// </summary>
[Table(Name = "erp_payment")]
public class Payment : AuditTenantSoftDeleteAggregateRoot
{
    /// <summary>
    /// 订单编码
    /// </summary>
    [Column(Name = "id", IsPrimary = true)]
    public Guid Id { get; set; }

    /// <summary>
    /// 客户Id
    /// </summary>
    [Column(Name = "customer_id")]
    public Guid? CustomerId { get; set; }

    /// <summary>
    ///  收款类型（1 = 支付宝；2 = 微信）
    /// </summary>
    [Column(Name = "type")]
    public int? Type { get; set; }

    /// <summary>
    /// 微信公众号AppId
    /// </summary>
    [Column(Name = "ten_pay_app_id", StringLength = 200)]
    public string TenPayAppId { get; set; }

    /// <summary>
    /// 微信公众号AppSecret
    /// </summary>
    [Column(Name = "ten_pay_app_secret", StringLength = 200)]
    public string TenPayAppSecret { get; set; }

    /// <summary>
    /// 微信商户号
    /// </summary>
    [Column(Name = "ten_pay_merchant_id", StringLength = 200)]
    public string TenPayMerchantId { get; set; }

    /// <summary>
    /// 微信支付密钥
    /// </summary>
    [Column(Name = "ten_pay_key", StringLength = 200)]
    public string TenPayKey { get; set; }

    /// <summary>
    /// 微信支付证书地址
    /// </summary>
    [Column(Name = "ten_pay_cert_path", StringLength = 200)]
    public string TenPayCertPath { get; set; }

    /// <summary>
    /// 微信分账接收人
    /// </summary>
    [Column(Name = "ten_pay_profit_sharing_name", StringLength = 200)]
    public string TenPayProfitSharingName { get; set; }

    /// <summary>
    /// 微信分账接收人OpenId
    /// </summary>
    [Column(Name = "ten_pay_profit_sharing_account", StringLength = 200)]
    public string TenPayProfitSharingAccount { get; set; }



}

